package com.yusong.open.sdk.domains;


/**
 * Created by yusong on 2018/1/19.
 * 企业微信异常
 * 不可变对象
 */
public class OpenSDKException extends Exception {
    //错误码
    private Integer code;
    //错误描述
    private String msg;


    @Override
    public String toString() {
        return "OpenSDKException{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }

    public OpenSDKException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
